﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Technoera.Common.QueryModel.Basic
{
    public class SortingRule
    {
        public SortingRule(string propertyPath, SortDirection sortDirection)
        {
            PropertyPath = propertyPath;
            SortDirection = sortDirection;
        }

        private string _propertyPath;
        public string PropertyPath
        {
            get
            {
                if (_propertyPath == null)
                    _propertyPath = string.Empty;

                return _propertyPath;
            }
            set
            {
                _propertyPath = value;
            }
        }

        public SortDirection SortDirection { get; set; }
    }
}
